package com.io.example.demoparent.thread;

/**
 * @program: demo-project
 * @ClassName Calc
 * @description:
 * @author: 宠儿
 * @create: 2024−09-08 18:06
 * @Version 1.0
 **/
public class Calc {

    public Integer calc(Integer para) {
        try {
            //模拟一个长时间的执行
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return para * para;
    }
}
